import request from '@/utils/request'

// 查询首页信息列表
export function listIndex(query) {
  return request({
    url: '/system/index/list',
    method: 'get',
    params: query
  })
}
export function doneListIndex(query) {
  return request({
    url: '/system/index/doneList',
    method: 'get',
    params: query
  })
}

export function listIndexNew(query) {
  return request({
    url: '/system/index/listNew',
    method: 'get',
    params: query
  })
}
export function listIndexNewChu(query) {
  return request({
    url: '/system/index/listNewChu',
    method: 'get',
    params: query
  })
}
export function listIndex2(query) {
  return request({
    url: '/system/index/list2',
    method: 'get',
    params: query
  })
}
export function listIndex3(query) {
  return request({
    url: '/system/index/list3',
    method: 'get',
    params: query
  })
}

export function listIndexWeek(query) {
  return request({
    url: '/system/index/listWeek',
    method: 'get',
    params: query
  })
}
export function doneListIndexWeek(query) {
  return request({
    url: '/system/index/doneListWeek',
    method: 'get',
    params: query
  })
}

export function listIndexLine1(query) {
  return request({
    url: '/system/index/listLine1',
    method: 'get',
    params: query
  })
}

export function listIndexLine2(query) {
  return request({
    url: '/system/index/listLine2',
    method: 'get',
    params: query
  })
}

// 查询首页信息详细
export function getIndex(assessId) {
  return request({
    url: '/system/index/' + assessId,
    method: 'get'
  })
}

// 新增首页信息
export function addIndex(data) {
  return request({
    url: '/system/index',
    method: 'post',
    data: data
  })
}

// 修改首页信息
export function updateIndex(data) {
  return request({
    url: '/system/index',
    method: 'put',
    data: data
  })
}

// 删除首页信息
export function delIndex(assessId) {
  return request({
    url: '/system/index/' + assessId,
    method: 'delete'
  })
}
